<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<title>初心-胡太狼</title>
		<meta name="description" content="" />
		<meta name="author" content="胡 毅鹏" />
		<!--[if lt IE 9]>
			<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->
		<link rel="shortcut icon" href="/favicon.ico" />
        <link rel="stylesheet" href="{{ STATIC_URL }}css/reset.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="{{ STATIC_URL }}css/grid.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="{{ STATIC_URL }}css/master.css" type="text/css" media="screen" />
	</head>
	<body>
		<div>
			<header>
				<div class="container_12">
					<h1><a href="chuxin.html">初  心</a></h1>
					<nav id="mainNav" >
						<a href="chuxin.html">首页</a>
						<a href="#">交易墙</a>
						<a href="#">图书库</a>
						<a href="#">讨论区</a>
					</nav>
					<form action="/search" method="">
						<input type="text" class="search-query" placeholder="搜索" />
					</form>
					<nav id="sideNav" class="gird_3" >
                        <a href="#" class="selected">{{ user.user.first_name }}</a>
                        <a href="{% url setting_page %}" >设置</a>
                        <a href="{% url logout %}" >退出</a>
					</nav>
	
				</div>
			</header>
			<div class="container_12">
				<div class="grid_8 mainside">
					<div class="settingbox">
                        <h3>{{ user.user.first_name }}</h3>
			    		<div class="tabs">
			    			<ul>
			    				<li class="tab mycreate tab_selected"><a href="#">发布的交易帖</a></li>
			    				<li class="tab myreplies"><a href="myreplies.html">参与的交易帖</a></li>
			    				<li class="tab collections"><a href="collections.html">收藏</a></li>
			    			</ul>
			    		</div>
			    		<div class="wallcontent">
							<table cellpadding="0" cellspacing="0" border="0" width="100%">
								<tbody>
									<td valign="top" class="avatar">
                                        <a href="{% url other_profile  other.user.id  %}"><img src="{{ STATIC_URL }}img/48.png" border="0" /></a>
									</td>
									<td style="padding-left: 12px;" valign="top">
										<div class="fr">
											<a href="#" class="reply_count">46</a>
										</div>
										<div class="sep3"></div>
										<span  style="font-size: 16px; line-height: 130%; ">
											<a href="#">罗技键鼠套装大甩卖了,谁要的啊??????</a>
										</span>
										<div class="sep5"></div>
										<span class="created">
											<strong>
												<a href="#" class="dark">胡太狼</a>
											</strong><span>·</span>
											<strong>
												<a href="#" class="node">数码</a>
											</strong><span>·</span>
											<span style="color: gray;">更新于2012-03-21 12:22</span>
										</span>
									</td>
								</tbody>
							</table>
						</div>
						<div class="wallcontent">
							<table cellpadding="0" cellspacing="0" border="0" width="100%">
								<tbody>
									<td valign="top" class="avatar">
										<a href="#"><img src="img/48.png" border="0" /></a>
									</td>
									<td style="padding-left: 12px;" valign="top">
										<div class="fr">
											<a href="#" class="reply_count">6</a>
										</div>
										<div class="sep3" ></div>
										<span  style="font-size: 16px; line-height: 130%; ">
											<a href="#">有UED,UI设计师，缺靠谱（NB）攻城师，做2个商业网站。组团队喔。</a>
										</span>
										<div class="sep5" ></div>
										<span class="created">
											<strong>
												<a href="#" class="dark">胡太狼</a>
											</strong><span>·</span>
											<strong>
												<a href="#" class="node">衣物服饰</a>
											</strong><span>·</span>
											<span style="color: gray;">更新于2012-03-21 12:22</span>
										</span>
									</td>
								</tbody>
							</table>
						</div>
			    	</div>
					<div class="wallpanel">
					</div>
			    </div>
			    <div class="grid_4 sidebar">
			     	<div class="loginbox">
			    		<div class="infopanel">
                            <img src="{{ MEDIA_URL }}{{ user.head160 }}" class="userface" alt="胡太狼">
			    			<div class="sepline"></div>
			    			<div class="userinfo">
			    				<div class="pl">
                                    {{ user.user.first_name  }}<br />
                                    {{ user.create_time }} 加入<br />
                                    {{ user.address }}
			    				</div>
			    			</div>
			    			<div class="userintro">
			    				<span class="pl">
			    					个人主页：
                                    <a href="{{ user.note }}">{{ user.note }}</a>
			    				</span><br />
                                <pre class="introdisplay">{{ user.resume }}</pre>
			    			</div>
			    		</div>
                        {% if not num == 0 %}
			    		<div class="loginfooter" style="font-size: 15px">
                            <a href="{% url usermessage %}">{{ num }}条未读提醒</a>
			    	    </div>
                        {% endif %}
			    	</div>
			    </div>
			    <div class="clearfix" />
			</div>
			
			<footer class="container_12">
				<nav class="footinfo">
					<a href="#">关于</a>
					<span>·</span>
					<a href="#">联系</a>
					<span>·</span>
					<a href="#">反馈</a>
					<span>&copy;2012 chuxin.me</span>
				</nav>
			</footer>
		</div>
		
		<script src="http://lib.sinaapp.com/js/jquery/1.7/jquery.js" type="text/javascript"></script>
		<script src="js/jquery.validate.js" type="text/javascript"></script>
		<script type="text/javascript">
			$().ready(function() {
				$("#usersetting").validate({
					rules: {
						email: {
							required: true,
							email: true
						},
						oldpassword: {
							required: true,
							minlength: 5
						},
						password: {
							required: true,
							minlength: 5
						},
						confirm_password: {
							required: true,
							minlength: 5,
							equalTo: "#password"
						},
						username: {
							required: true,
							maxlength: 14
						}
					},
					messages: {
						email: "哎呦，请输入有效邮箱地址",
						oldpassword: {
							required: "请输入密码",
							minlength: "密码太寒碜了，需要5个字符以上"
						},
						password: {
							required: "请输入密码",
							minlength: "密码太寒碜了，需要5个字符以上"
						},
		                confirm_password: {
							required: "请输入密码",
							minlength: "密码太寒碜了，需要5个字符以上",
							equalTo: "两次输入不一致，请检查"
						},
						username: {
							required:"那个谁，填个昵称吧",
							maxlength: "你的昵称也太长了吧，记不住啊"
						}
					}
				});
			}); 	
		</script>		
	</body>
</html>
